﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace C4F.DevKit.Bluetooth.ServiceAndDeviceDiscovery
{
    /// <summary>
    /// Represents the CSADDR_INFO structure.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public class CsAddrInfo
    {
        /// <summary>
        /// Windows Sockets local address.
        /// </summary>
        public SocketAddress LocalAddr;
        /// <summary>
        /// Windows Sockets remote address. T
        /// </summary>
        public SocketAddress RemoteAddr;
        /// <summary>
        /// Type of Windows socket. 
        /// </summary>
        public int SocketType;
        /// <summary>
        /// Value to pass as the protocol parameter to the socket 
        /// function to open a socket for this service.
        /// </summary>
        public int Protocol;
    }
}
